{% extends "kore2columns.html" %}
{% load i18n %}

{% block rss %}
<link rel="alternate" type="application/rss+xml" href="http://www.sam-lesite.fr/feeds/concerts/" title="sam - flux rss des concerts" />
{% endblock %}



{% block main-content %}


	
	{% if object_list %}

	<h2 style="text-align:center">{% trans 'Dates à venir' %}</h2>

		{% for gig in object_list %}
			<div class="{% cycle 'row1' 'row2' %}">
					<div style="float:right; width:300px;" class="soft">
		                {% autoescape off %}
		                    {{ gig.text }}
		                {% endautoescape %}
		            </div>
				
				<p>
				<b>{{ gig.hall }}</b>
				<br />
				{{ gig.date_time|date:"l d F Y H:i" }}
				<br />
				{{ gig.place }}, {{ gig.city }} ({{ gig.country }})
				<br />
				{% ifnotequal gig.price '0' %}{{ gig.price }} euros{% else %}entrée libre{% endifnotequal %}
				</p>
			</div>
		{% endfor %}

	{% endif %}

	{% if prev_gigs %}
	<h2  style="text-align:center">{% trans 'Dates passées' %}</h2>
	
	{% regroup prev_gigs by date_time.year as gig_list %}

	


	
	

	
	{% for year in gig_list %}
	<h3 >{{ year.grouper }}</h3>
			{% for gig in year.list %}
				<div class="{% cycle 'row1' 'row2' %}">
			                

			                
			        <p><b>{{ gig.hall }}</b>
					<!--<form style="float:left;margin:10px;" action="#" onsubmit="showAddress(this.address.value); return false">
					    <input type="hidden" size="60" name="address" value="{{gig.place}} {{gig.city}} {{gig.country}}" />
					    <input type="image" src="{{MEDIA_URL}}img/information.png"/>
					</form>
					-->
					<br /> {{ gig.date_time|date:"l d F Y" }} 
					<br /> {{ gig.place }}, {{ gig.city }} ({{ gig.country }})
					<br />
					{% autoescape off %}
			        	{{ gig.text }}
			        {% endautoescape %}
					</p>
					<div style="clear:both;"></div>
			
				</div>
				{% endfor %}
	
	
	
	{% endfor %}
		
	{% endif %}



{% endblock %}
